{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "41c791c5-3a81-4629-90fc-2e505ddd4f5c",
   "metadata": {},
   "outputs": [],
   "source": [
    "# load module\n",
    "from pathlib import Path\n",
    "import os, sys\n",
    "import django\n",
    "\n",
    "# settings / modelProject is project name\n",
    "os.environ.update({\n",
    "    \"DJANGO_SETTINGS_MODULE\": \"modelProject.settings\"\n",
    "})\n",
    "\n",
    "# support async\n",
    "os.environ[\"DJANGO_ALLOW_ASYNC_UNSAFE\"] = \"true\"\n",
    "\n",
    "django.setup()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "eaea2e62-476d-43dc-b210-4e904618e76a",
   "metadata": {},
   "source": [
    "### logs"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "fd3d68fa-1619-48d4-a95a-edec1b7b80e8",
   "metadata": {},
   "outputs": [],
   "source": [
    "from apps.logs.models import ApiLogs"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "97d0eaa8-b504-4354-90c8-ff9cefdb8701",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<QuerySet []>"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ApiLogs.objects.all()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "dc04a495-04e2-4f57-9894-acb93bf87ccd",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "2503e1eb-9710-4a85-a728-2c799fc273db",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ce4b8718-37f4-48f1-bd94-4c12d881f5f2",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "90b515a3-af8b-419f-8ed7-495d58be558c",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "53a5f2bb-0d5a-4818-abd1-f6d56ed324d4",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3.9.1 64-bit ('base': conda)",
   "language": "python",
   "name": "python391jvsc74a57bd0172a9845c3df654692d8d322d151676823b741e04675a2be5ceb7bb0628e82eb"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.1"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
